/**
* Copyright (c) 2013-2014, qtone Inc. All Rights Reserved.
*
* @author: tanghuaicheng
* Project Name: testuc
* $Id:   2017-01-11 10:54:07 $
*/
package com.bangcommunity.bbframe.common.base;

import java.util.Objects;

public class ModelData<T> implements java.io.Serializable {
    private static final long serialVersionUID = 1L;
    private T data;//
    public ModelData(T data){
        this.data = data;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ModelData<?> modelData = (ModelData<?>) o;
        return Objects.equals(data, modelData.data);
    }

    @Override
    public int hashCode() {
        return Objects.hash(data);
    }
}